home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pine / makefile.wnt < prev    next >
Makefile  |  1996-03-15  |  4KB  |  127 lines

  1. # $Id: makefile.wnt,v 4.6 1996/03/15 21:08:26 mikes Exp $
  2. #
  3. #            T H E    P I N E    M A I L   S Y S T E M
  4. #
  5. #   Laurence Lundblade and Mike Seibel
  6. #   Networks and Distributed Computing
  7. #   Computing and Communications
  8. #   University of Washington
  9. #   Administration Building, AG-44
  10. #   Seattle, Washington, 98195, USA
  11. #   Internet: lgl@CAC.Washington.EDU
  12. #             mikes@CAC.Washington.EDU
  13. #
  14. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  15. #
  16. #
  17. #   Pine and Pico are registered trademarks of the University of Washington.
  18. #   No commercial use of these trademarks may be made without prior written
  19. #   permission of the University of Washington.
  20. #
  21. #   Pine, Pico, and Pilot software and its included text are Copyright
  22. #   1989-1996 by the University of Washington.
  23. #
  24. #   The full text of our legal notices is contained in the file called
  25. #   CPYRIGHT, included with this distribution.
  26. #
  27. #
  28. #   Pine is in part based on The Elm Mail System:
  29. #    ***********************************************************************
  30. #    *  The Elm Mail System  -  Revision: 2.13                             *
  31. #    *                                                                     *
  32. #    *             Copyright (c) 1986, 1987 Dave Taylor               *
  33. #    *             Copyright (c) 1988, 1989 USENET Community Trust    *
  34. #    ***********************************************************************
  35. #
  36.  
  37.  
  38. #
  39. #     Make file for the Pine mail system for Windows NT 3.51
  40. #
  41. #
  42. CC=cl
  43. CP=copy
  44. RM=del
  45. MAKE=nmake
  46.  
  47. #   Most commonly fiddled flags for compiler.
  48. #   Uncomment the setttings desired here
  49.  
  50. PROFILE=     # -pg
  51. OPTIMIZE=    # -Os
  52. DEBUG=       -Zi -Od -DDEBUG
  53. CBASIC=      -nologo -MT -DWIN32 -D_WINDOWS -DDOS -DMOUSE -DSYSTYPE=\"WNT\" -DMSC_MALLOC
  54. CFLAGS=         $(OPTIMIZE) $(DEBUG) $(CBASIC)
  55. LINKSCRIPT=  
  56. LDEBUG=         /DEBUG /DEBUGTYPE:CV
  57. LFLAGS=      $(LDEBUG) # /NODEFAULTLIB:libc.lib
  58. LIBS=        ..\pico\libpico.lib ..\c-client\cclient.lib oldnames.lib wsock32.lib user32.lib gdi32.lib shell32.lib comdlg32.lib
  59.  
  60. HEADERS= headers.h pine.h os.h helptext.h context.h \
  61.       ../c-client/mail.h ../c-client/osdep.h
  62.  
  63. OBJ=    addrbook.obj adrbklib.obj args.obj context.obj \
  64.     filter.obj folder.obj help.obj imap.obj init.obj mailcap.obj \
  65.     mailcmd.obj mailindx.obj mailpart.obj mailview.obj newmail.obj \
  66.     os.obj other.obj pine.obj reply.obj screen.obj send.obj \
  67.     signals.obj status.obj strings.obj ttyin.obj ttyout.obj mswinver.obj
  68.     
  69. all:    pine.exe
  70.     
  71.  
  72. tags:        
  73.     ctags -s -t ..\\TAGS -m -h -p *.h *.c
  74.  
  75. .c.obj:
  76.     $(CC) -c $(CFLAGS) $(MAKEDIR)\$*.c
  77.  
  78. os.h:    osdep\os-wnt.h
  79.     $(RM) os.h
  80.     $(CP) osdep\os-wnt.h os.h
  81.  
  82. os.c:    osdep\os-wnt.c
  83.     $(RM) os.c
  84.     $(CP) osdep\os-wnt.c os.c
  85.  
  86. osdep\os-wnt.c:    osdep\bld_path.dos osdep\canacces osdep\canonicl.dos \
  87.         osdep\chnge_pw.dos osdep\coredump osdep\creatdir.dos \
  88.         osdep\dialog.win osdep\diskquot.non osdep\domnames.dos \
  89.         osdep\err_desc.dos osdep\expnfldr.dos osdep\filesize \
  90.         osdep\fltrname.dos osdep\fnexpand.dos osdep\header \
  91.         osdep\hostname osdep\jobcntrl.dos osdep\lstcmpnt.dos \
  92.         osdep\mimedisp osdep/pipe.win osdep/print.win \
  93.         osdep\pw_stuff.dos osdep\debuging.dos osdep\readfile.dos \
  94.         osdep\rename.dos osdep\tempfile osdep\tempnam.dos \
  95.         osdep\fgetpos osdep\writ_dir osdep\sendmail.dos \
  96.         osdep\execview.win osdep\os-wnt.ic osdep\winextra
  97.     cd osdep
  98.     $(MAKE) -f makefile.dos includer.exe os-wnt.c
  99.     cd ..
  100.  
  101. helpindx.exe:    helpindx.c
  102.         cl helpindx.c
  103.  
  104. pine.ndx:    helpindx.exe pine.hlp
  105.         helpindx pine.hlp pine.ndx helptext.h
  106.  
  107. helptext.h:    pine.ndx
  108.  
  109. #helptext.c:    pine.hlp 
  110. #        ./cmplhelp.sh  < pine.hlp > helptext.c
  111.  
  112. $(OBJ):        $(HEADERS)
  113.  
  114. mswinver.obj:    osdep\mswinver.c
  115.     $(CC) /c $(CFLAGS) osdep\mswinver.c
  116.  
  117. osdep\mswin.res:    osdep\mswin.rc osdep\mswin.ico osdep\mswin.bmp
  118.     cd osdep
  119.     $(RC) $(RCFLAGS) /fo mswin.res mswin.rc
  120.     cd ..
  121.  
  122. pine.exe:    $(OBJ) osdep\mswin.def ..\c-client\cclient.lib ..\pico\libpico.lib osdep\mswin.res
  123.     ..\pico\blddate > bdate.c
  124.     $(CC) /c $(CFLAGS) bdate.c
  125.     link /subsystem:windows /out:pine.exe $(LFLAGS) bdate.obj $(OBJ) osdep\mswin.res $(LIBS)
  126.